package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.exception.HealthException;
import com.itheima.health.pojo.Role;
import com.itheima.health.vo.RoleVo;

import java.util.List;

public interface RoleService {
    PageResult<Role> findPage(QueryPageBean queryPageBean);

    void add(RoleVo roleVo);

    Role findById(int roleId);

    void update(RoleVo roleVo);

    void deleteById(int roleId) throws HealthException;

    List<Role> findAll();
}
